﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Objects;
using NorthwindModel;
using NorthwindModel.IRepositories;
using NorthwindModel.Models;

namespace NorthwindDAL.Repositories
{
    public partial class ProductRepository
    {
        public Product GetProductById(int productId)
        {
            Product product = base.FindSingleBy(productEntity => productEntity.ProductID == productId); 
            return product;
        }
    }
}